package com.shenzhen.horselive.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.shenzhen.horselive.R;
import com.shenzhen.horselive.beans.MyCityBean;

import org.jetbrains.annotations.NotNull;

public class MyActionHallAdapter extends BaseQuickAdapter<MyCityBean.DataBean, BaseViewHolder> {


    public MyActionHallAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, MyCityBean.DataBean dataBean) {
        baseViewHolder.setText(R.id.tv_name,dataBean.getAreaName());
//       主城状态 1竞拍中 2已结束
        switch (dataBean.getStatus())
        {
            case 1:
                baseViewHolder.setImageResource(R.id.img_state,R.mipmap.ico_au);
                break;
            case 2:
                baseViewHolder.setImageResource(R.id.img_state,R.mipmap.ico_yijiesu);
                break;

        }
    }
}
